﻿using System.Diagnostics;
using Security.Specs.ViewModels;

namespace Security.Events.Commands
{
    [DebuggerDisplay("ViewModel = {ViewModel.GetType()}, Saved = {Saved}")]
    public class SaveChangesCommand : CommandBase
    {
        public SaveChangesCommand(IViewModel viewModel)
        {
            ViewModel = viewModel;
        }

        public IViewModel ViewModel { get; set; }
        public bool Saved { get; set; }

        public override string ToString()
        {
            return Strings.SaveChangesCommandDescription(this);
        }
    }
}
